from flask import Flask, send_file

app = Flask(__name__)


# 　员工注册
@app.route('/register')
def register():
    return send_file('templates/register.html')


# 员工登录
@app.route('/login')
def login():
    return send_file('templates/login.html')


# 忘记密码
@app.route('/forget')
def forget():
    return send_file('templates/forget.html')

@app.route('/index')
def index():
    #首页
    return send_file('templates/index.html')

@app.route('/employees_list')
def employees_list():
    #员工列表
    return send_file('templates/employees_list.html')

@app.route('/employee_add')
def employee_add():
    #员工添加
    return send_file('templates/employee_add.html')

@app.route('/employee_modify')
def employee_modify():
    #员工修改
    return send_file('templates/employee_modify.html')

@app.route('/add_department')
def department_add():
    #部门添加
    return send_file('templates/department_add.html')

@app.route('/department_modify')
def department_modify():
    #部门修改
    return send_file('templates/department_modify.html')

@app.route('/department_member_exchange')
def department_member_exchange():
    #部门人员变动
    return send_file('templates/department_member_exchange.html')

@app.route('/attendance_management')
def attendance_management():
    #考勤管理
    return send_file('templates/attendance_management.html')

@app.route('/salary_management')
def salary_management():
    #薪资基数管理
    return send_file('templates/salary_management.html')

@app.route('/bonus_management')
def bonus_management():
    #奖金管理
    return send_file('templates/bonus_management.html')

@app.route('/account_add')
def account_add():
    #账户添加
    return send_file('templates/account_add.html')

@app.route('/account_set')
def account_set():
    #账户设置
    return send_file('templates/account_set.html')

@app.route('/my_account')
def my_account():
    #我的账户
    return send_file('templates/my_account.html')

@app.route('/welcome')
def welcome():
    #首页显示
    return send_file('templates/welcome.html')

if __name__ == '__main__':
    app.run(debug=True)
